package com.kosam.feign;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * feign 使用 hystrix 实现断路由器功能
 * Created by tgx on 2017/2/14.
 */
@Component
public class ComputeClientHystrix implements ComputeClient {
    @Override
    public Integer add(@RequestParam(value = "a") Integer a, @RequestParam(value = "b") Integer b) {
        return -9999;
    }

    @Override
    public String findUser() {
        return "from feign: Could not find any infonation!";
    }
}
